#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int i = 2, j = 2, flag;
	while (i <= 100)
	{
		flag = 1;
		j = 2;
		while (j <i)
		{
			if (i % j == 0)
			{
				flag = 0;
				break;
			}
			j++;

		}
		
		if (flag == 1)
			cout << i << endl;
		i++;
	}
	return 0;
}
